<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{/statics/未压缩版.js}" type="text/javascript"></script>
    <script th:src="@{/statics/js/user.js}" type="text/javascript"></script>

    <link th:href="@{/statics/layui-v2.7.6/layui/css/layui.css}" type="text/css" rel="stylesheet">
    <script th:src="@{/statics/layui-v2.7.6/layui/layui.js}" type="text/javascript"></script>
    <style>
        .t1{
            border: 1px solid #1e9fff;
            padding: 10px;
            background: #CFDFF5;
            margin-bottom: 10px;
        }
        div{
            color: #1e9fff;
        }
        .search{
            border: 1px solid #CED3DA;
            background-color: #F5F7FA;
            height: 260px;
            line-height: 50px;
            margin-left: 10px;
            margin-top: 10px;
            margin-bottom: 10px;
            padding-left: 10px;
        }
        p{
            border: 1px dashed gray;
            margin-top: 15px;
        }
    </style>
</head>
<body>
<div class="update" th:object="${employee}">
    <div class="t1"> &nbsp;&nbsp;&nbsp;&nbsp; 当前位置:用户管理 > 员工查询 > 员工修改</div>
    <form  th:action="@{/employee/update}"method="post" class="search">
        <div>
            <div>
                姓名:<input type="text" name="name" id="name" th:value="*{name}">&nbsp;&nbsp;&nbsp;
                身份证号码:<input type="text" name="cardId" th:value="*{cardId}">
            </div>
            <p>
                <span id="tishi"></span>
            </p>
            <div>
                性别：<select name="sex">
                <option th:selected="${employee.sex==1}" value="1">男</option>
                <option th:selected="${employee.sex==2}" value="2">女</option>
            </select>&nbsp;&nbsp;&nbsp;
                职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：<select name="jobId" th:value="*{name}">
                <option th:selected="${jobId==0}" value="0">---请选择职位---</option>
                <option th:each="job12:${job12}" th:selected="${employee.jobId==job12.id}" th:value="${job12.id}" th:text="${job12.NAME}"></option>
            </select>
            </div>
            <div>
                学历:<input type="text" name="education" th:value="*{education}">&nbsp;&nbsp;&nbsp;
                邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱:<input type="email" name="email" th:value="*{email}">
            </div>
            <div>
                手机:<input type="text" name="phone" th:value="*{phone}">&nbsp;&nbsp;&nbsp;
                电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:<input type="text" name="tel" th:value="*{tel}">
            </div>
        </div>

        <div>
            <div>
                政治面貌:<input type="text" name="party" th:value="*{party}">&nbsp;&nbsp;&nbsp;
                QQ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号码:<input type="text" name="qqNum" th:value="*{qqNum}">
            </div>
            <div>
                联系地址:<input type="text" name="address" th:value="*{address}">&nbsp;&nbsp;&nbsp;
                邮政&nbsp;编码:<input type="text" name="postCode" th:value="*{postCode}">
            </div>
            <div>
                出生日期:<input type="text" name="birthday" th:value="*{birthday}">&nbsp;&nbsp;&nbsp;
                民&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;族:<input type="text" name="race" th:value="*{race}">
            </div>
            <div>
                所学专业:<input type="text" name="speciality" th:value="*{speciality}">&nbsp;&nbsp;&nbsp;
                爱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;好:<input type="text" name="hobby" th:value="*{hobby}">
            </div>
            <div>
                备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:<input type="text" name="remark" th:value="*{remark}">&nbsp;&nbsp;&nbsp;
                所属部门：<select name="deptId">
                <option th:selected="${deptId==0}" value="0">---请选择职位---</option>
                <option th:each="dept:${dept12}" th:selected="${employee.deptId==dept12.id}" th:value="${dept.id}" th:text="${dept.NAME}"></option>
            </select>
            </div>
        </div>
        <div>
            <input type="submit" value="修改">&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="reset" value="取消">
        </div>
    </form>
</div>

</body>
</html>